<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>location 对象</title>
    <style>
        section {
            padding: 10px;
        }
    </style>
</head>
<body>
    <h1>location 对象示例</h1>
    <section>
        <h1>归属</h1>
        <ul>
            <li>window</li>
            <li>document</li>
        </ul>
    </section>
    <section>
        <h2>属性和方法</h2>
        <ul>
            <li>href</li>
            <li>path</li>
            <li>assign()</li>
            <li>reload()</li>
        </ul>
    </section>
</body>
</html>